//---------------------------------------------------------------------
// <copyright file="CsdlTypeAnnotation.cs" company="Microsoft">
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//---------------------------------------------------------------------

using System.Collections.Generic;

namespace Microsoft.Data.Edm.Csdl.Internal.Parsing.Ast
{
    /// <summary>
    /// Represents a CSDL type annotation.
    /// </summary>
    internal class CsdlTypeAnnotation : CsdlVocabularyAnnotationBase
    {
        private readonly List<CsdlPropertyValue> properties;

        public CsdlTypeAnnotation(string term, string qualifier, IEnumerable<CsdlPropertyValue> properties, CsdlLocation location)
            : base(term, qualifier, location)
        {
            this.properties = new List<CsdlPropertyValue>(properties);
        }

        public IEnumerable<CsdlPropertyValue> Properties
        {
            get { return this.properties; }
        }
    }
}
